package com.zx.mes.hyl.service.impl;

import com.zx.mes.hyl.entity.Admin;
import com.zx.mes.hyl.mapper.AdminMapper;
import com.zx.mes.hyl.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author huayunlong
 *
 */
@Service
public class AdminServiceImpl implements AdminService{

    private final AdminMapper adminMapper;

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    public AdminServiceImpl(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public Admin getOne(String id) {
        return adminMapper.getOne(id);
    }
}
